$("#adtvmout").click(function () {
    window.location.href = '/admin/member/index';
});

$("#pass").click(function () {
    var id = $("input[name='id']").val();
    var confirm_msg = "确认通过吗?";
    if (confirm(confirm_msg)) {
        $.ajax({
            url: '/admin/member/check',
            type: 'POST',
            data: 'type=pass&id=' + id,
            dataType: 'JSON',
            success: function (json) {
                if (json.code == 2000) {
                    window.location.href = '/admin/member/index'
                } else {
                    dshow(json.message);
                }
            }
        });
    }
});
$("#noPass").click(function () {
    var id = $("input[name='id']").val();
    var confirm_msg = "确认驳回吗?";
    if (confirm(confirm_msg)) {
        $.ajax({
            url: '/admin/member/check',
            type: 'POST',
            data: 'type=nopass&id=' + id,
            dataType: 'JSON',
            success: function (json) {
                if (json.code == 2000) {
                    window.location.href = '/admin/member/index'
                } else {
                    dshow(json.message);
                }
            }
        });
    }
});